/**
 * @param {number[]} nums
 * @return {boolean}
 */
var canJump = function (nums) {
    let n = nums.length
    for (let i = 0; i < n; i++) {
        if (nums[i] < 1) {
            return false
        }
    }
};

let nums = [2, 3, 1, 1, 4]
console.log(canJump(nums));